package com.stx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("r_record")
public class Record {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer judId;
    private Integer plaId;
    private Integer ruaId;
    private String  judName;
    private String  plaName;
    private Double recScore;
    private Integer ruaNumber;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime recDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getJudId() {
        return judId;
    }

    public void setJudId(Integer judId) {
        this.judId = judId;
    }

    public Integer getPlaId() {
        return plaId;
    }

    public void setPlaId(Integer plaId) {
        this.plaId = plaId;
    }

    public Integer getRuaId() {
        return ruaId;
    }

    public void setRuaId(Integer ruaId) {
        this.ruaId = ruaId;
    }

    public String getJudName() {
        return judName;
    }

    public void setJudName(String judName) {
        this.judName = judName;
    }

    public String getPlaName() {
        return plaName;
    }

    public void setPlaName(String plaName) {
        this.plaName = plaName;
    }

    public Double getRecScore() {
        return recScore;
    }

    public void setRecScore(Double recScore) {
        this.recScore = recScore;
    }

    public Integer getRuaNumber() {
        return ruaNumber;
    }

    public void setRuaNumber(Integer ruaNumber) {
        this.ruaNumber = ruaNumber;
    }

    public LocalDateTime getRecDate() {
        return recDate;
    }

    public void setRecDate(LocalDateTime recDate) {
        this.recDate = recDate;
    }

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", judId=" + judId +
                ", plaId=" + plaId +
                ", ruaId=" + ruaId +
                ", judName='" + judName + '\'' +
                ", plaName='" + plaName + '\'' +
                ", recScore=" + recScore +
                ", ruaNumber=" + ruaNumber +
                ", recDate=" + recDate +
                '}';
    }
}
